package com.ls.mysql.quartz.entity;

import java.util.Date;

/**
 * @Author Maple.Chen
 * @Description 构建任务调度的javaBean
 * @Date 17:12 2020/5/28
 **/
public class Quartz {

    // 任务名称
    private String jobName;
    // 任务分组名称
    private String jobGroup;
    // 记录任务创建时间
    private Date startTime;
    // cron表达式，任务执行时间或执行规则
    private String cronExpression;
    // 需要传递的参数
    private String deliverParam;
    // 执行任务类的类路径 <包名+类名，不加扩展名>
    private String classPath;

    public Quartz() {
    }

    public Quartz(String jobName, String jobGroup, Date startTime, String cronExpression, String deliverParam, String classPath) {
        this.jobName = jobName;
        this.jobGroup = jobGroup;
        this.startTime = startTime;
        this.cronExpression = cronExpression;
        this.deliverParam = deliverParam;
        this.classPath = classPath;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getDeliverParam() {
        return deliverParam;
    }

    public void setDeliverParam(String deliverParam) {
        this.deliverParam = deliverParam;
    }

    public String getClassPath() {
        return classPath;
    }

    public void setClassPath(String classPath) {
        this.classPath = classPath;
    }

    @Override
    public String toString() {
        return "Quartz{" +
                "jobName='" + jobName + '\'' +
                ", jobGroup='" + jobGroup + '\'' +
                ", startTime=" + startTime +
                ", cronExpression='" + cronExpression + '\'' +
                ", deliverParam='" + deliverParam + '\'' +
                ", classPath='" + classPath + '\'' +
                '}';
    }
}
